//
//  FSCheckBoxFootView.m
//  Trade
//
//  Created by 刘沿 on 16/4/13.
//  Copyright © 2016年 刘沿. All rights reserved.
//

#import "FSCheckBoxFootView.h"

@interface FSCheckBoxFootView ()

@property (weak, nonatomic) IBOutlet UIButton *noOrder;


@property(nonatomic,strong)UIButton * selectedButton;


@end

@implementation FSCheckBoxFootView

- (IBAction)didCheckBox:(id)sender {
    
    UIButton * btn = (UIButton*)sender;
    self.selectedButton.selected = NO;
    btn.selected = YES;
    self.selectedButton = btn;
    self.orderString = [NSString stringWithFormat:@"%ld",(long)btn.tag];
    
    
}

-(void)awakeFromNib{
    
    self.autoresizingMask = UIViewAutoresizingNone;
    
    [self didCheckBox:self.noOrder];
    
}

+(instancetype)checkBoxFootView{
    return [[[NSBundle mainBundle] loadNibNamed:@"FSCheckBoxFootView" owner:nil options:nil] lastObject];
}


@end
